Skip to content

Add a new "model alerts" webview (for showing results from model evaluation)#3436

Merged
shati-patel merged 5 commits intomainfrom
shati-patel/model-alerts-view
Mar 5, 2024
Merged

Add a new "model alerts" webview (for showing results from model evaluation)#3436
shati-patel merged 5 commits intomainfrom
shati-patel/model-alerts-view

Conversation

@shati-patel
Copy link
Copy Markdown
Contributor

This PR adds a (currently empty) "Model alerts" webview, which can be opened by clicking "Evaluation run" from the model editor. In future, this will be populated with evaluation results, but for now it looks like this 😂

4FFC53E6-4870-49B6-926E-CBF5E13505E4.MP4

See internal linked issue for more context and future work!

Checklist

N/A (feature-flagged for internal use)

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • [Maintainers only] If this pull request makes user-facing changes that require documentation changes, open a corresponding docs pull request in the github/codeql repo and add the ready-for-doc-review label there.

Comment thread extensions/ql-vscode/src/view/model-alerts/ModelAlerts.tsx Fixed
@shati-patel shati-patel marked this pull request as ready for review March 5, 2024 10:55
@shati-patel shati-patel requested review from a team as code owners March 5, 2024 10:55
Copy link
Copy Markdown
Contributor

@robertbrignull robertbrignull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me, though it would be good to clean up the types before merging.

import { showAndLogExceptionWithTelemetry } from "../../common/logging";

export class ModelAlertsView extends AbstractWebview<
ToDataFlowPathsMessage,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we define new types instead of reusing the DataFlowPaths types

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oooops, I thought I'd already fixed that! Thanks 🤦🏽

Comment thread extensions/ql-vscode/src/model-editor/model-evaluator.ts
Copy link
Copy Markdown
Contributor

@robertbrignull robertbrignull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shati-patel shati-patel merged commit cffecaf into main Mar 5, 2024
@shati-patel shati-patel deleted the shati-patel/model-alerts-view branch March 5, 2024 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants